What is causing the SQL syntax error in my MySQL trigger code